Skip to content

Conversation

@msridhar
Copy link
Contributor

The new warnings are a consequence of uber/NullAway#1371, which better detections annotations on type arguments in return types. Fortunately, the fixes are straightforward. Note that writing @Nullable Void is required by JSpecify (see jspecify/jspecify#51). This is not yet checked exhaustively by NullAway, but some instances were caught here.

@msridhar
Copy link
Contributor Author

FYI @sdeleuze

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Dec 19, 2025
@msridhar msridhar force-pushed the nullaway-0.12.15-fixes branch from 1ac5243 to b39f321 Compare December 21, 2025 00:28
Signed-off-by: Manu Sridharan <msridhar@gmail.com>
@msridhar msridhar force-pushed the nullaway-0.12.15-fixes branch from b39f321 to b4ec0ad Compare December 21, 2025 23:57
@snicoll snicoll added the status: on-hold We can't start working on this issue yet label Dec 23, 2025
@snicoll
Copy link
Member

snicoll commented Dec 23, 2025

I don't think we should upgrade just yet even if this works for framework, see spring-gradle-plugins/nullability-plugin#25

@msridhar
Copy link
Contributor Author

Hi @snicoll thanks, I commented on the NullAway issue you opened. It might be reasonable to change the nullability-plugin to not enable RequireExplicitNullMarking checking by default, if it's too surprising for users; people could opt in to it instead. But I think that's independent of the NullAway 0.12.15 release.

For context, I'm interested in getting Spring Framework upgraded to NullAway 0.12.15 since we use it as an integration test for NullAway, and that integration test has been failing due to the new warnings that this PR fixes. Nothing critical, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: on-hold We can't start working on this issue yet status: waiting-for-triage An issue we've not yet triaged or decided on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants